export default {
    //两个钩子函数
    bind(el, binding, vnode) {    //绑定时执行
        const _ops = binding.value,
            _c = el.getElementsByClassName(_ops.className);
        _c[_ops.curIdx].className += ` ${_ops.currentClassName}`;
    },
    update(el, binding, vnode) {  //更新时执行
        const _ops = binding.value,
            _oOps = binding.oldValue,
            _c = el.getElementsByClassName(_ops.className);
        _c[_oOps.curIdx].className = `${_oOps.className}`;
        _c[_ops.curIdx].className += ` ${_ops.currentClassName}`;
    }
}